<?php
// +----------------------------------------------------------------------
// | Copyright © Sogu Technologies Co. Ltd 2018-2050 All rights reserved.
// +----------------------------------------------------------------------
// | File name: Repay.php
// +----------------------------------------------------------------------
// | Author: gxs
// +----------------------------------------------------------------------
// | Description: 还款通用常量
// +----------------------------------------------------------------------
// | Others: 其他内容的说明
// +----------------------------------------------------------------------
// | History: 修改历史记录列表，每条修改记录应包含修改日期、修改者及修改内容简述
// +----------------------------------------------------------------------
// | 1.Date: 2019/4/2 Author: gxs Modification: 创建
// +----------------------------------------------------------------------

namespace App\Constant;

class RepayConstant
{
    /**
     * 额外常量
     */
    //催收系统还款状态
    const COLLECTION_STATUS_ONE = 1; //已还款
    const COLLECTION_STATUS_TWO = 2; //逾期中
    const COLLECTION_STATUS_THREE = 3; //待还款

    //回执申请反馈类型枚举
    const COLLECTION_BACK_TYPE_ONE = 1; //代扣申请反馈
    const COLLECTION_BACK_TYPE_TWO = 2; //销帐申请反馈
    const COLLECTION_BACK_TYPE_THREE = 3; //提前结清反馈

    /**
     * repay_summaries表 data_type字段
     * 新旧卡贷标识: 1: 新卡贷数据, 2:旧卡贷数据
     */
    const DATA_TYPE_ONE = 1;
    const DATA_TYPE_TWO = 2;

    /**
     * user_loan_requests表
     */
    //新卡贷数据资方用于销帐 channel字段
    const MONEY_CHANNEL_GUANG_DA = 10009; //新光大
    const MONEY_CHANNEL_JIN_SHANG = 'JCFC'; //晋商

    /**
     * 销帐专用常量 区分四种资方类型
     */
    const WRITE_OFF_ONE = 1; //晋商
    const WRITE_OFF_TWO = 2; //新光大
    const WRITE_OFF_THREE = 3; //老光大
    const WRITE_OFF_FOUR = 4; //其他

    /**
     * repay_records表
     */
    //repay_type
    const REPAY_TYPE_ONE = 1; //手动
    const REPAY_TYPE_TWO = 2; //自动
    const REPAY_TYPE_THREE = 3; //催收代扣
    const REPAY_TYPE_FOUR = 4; //催收销账
    const REPAY_TYPE_FIVE = 5; //催收全部还清
    const REPAY_TYPE_SIX = 6; //异常还款,重新唤起
    const REPAY_TYPE_SEVEN = 7; //手动执行脚本全部结清

    //status
    //还款状态 1:待还／未还,2:还款中,3:还款失败,4:还款成功(以资方还款接口为准)
    const STATUS_ONE = 1; //代换/未还
    const STATUS_TWO = 2; //还款中
    const STATUS_THREE = 3; //还款失败
    const STATUS_FOUR = 4; //还款成功

    //xz_status
    const XZ_STATUS_ONE = 1; //默认状态, 未销帐
    const XZ_STATUS_TWO = 2; //销帐中
    const XZ_STATUS_THREE = 3; //销帐失败
    const XZ_STATUS_FOUR = 4; //销帐成功

    //pay_off
    const PAY_OFF_ONE = 1; //单期
    const PAY_OFF_TWO = 2;

}